/**

	业务机会月度跟进 测试类	OpportunityMonthFollowHandler
	意向产品月度跟进 测试类 IntentionalProductMonthFollowHandler

*/
@isTest
private class OppMonthFollowTest {
    static testMethod void testMethod1() {
        
  		// 客户
        Account acc = TestUtils.createAccount();
        acc.Level__c = '一级医院';
        insert acc;

        // 业务机会
        Opportunity opp = TestUtils.createOpportunity();
        opp.AccountId = acc.Id;
        insert opp;

        // 产品
        Product__c p = TestUtils.createProduct();
        p.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('NCProduct', 'Product__c');
        insert p;


        OpportunityMonthFollow__c om = new OpportunityMonthFollow__c();
        om.Opportunity__c = opp.Id;
        om.Year__c = '2019年';
        om.Month__c = '1月';

        insert om;

        IntentProduct__c ip = new IntentProduct__c();
        ip.Opportunity__c = opp.Id;
        ip.Product__c = p.Id; 
        insert ip ; 

        IntentionalProductMonthFollow__c ipm = new IntentionalProductMonthFollow__c();
        ipm.IntentProduct__c = ip.Id; 
        ipm.Year__c = '2019年';
        ipm.Month__c = '1月';
        insert ipm;


    }
}